using UnityEngine;
using System.Collections.Generic;
namespace Map_Sys{
	public class Map : MonoBehaviour  {

		private static int _horizon_grid;
		private static int _verticle_grid;
		//建立一个二维数组用来存储地图各网格信息,第一维表示垂直方向(行)，第二维表示水平方向（列），左下角为原点
		public static int[] map_info;
		private string map_path;
		
		//水平方向网格数量
		public static int horizon_grid
		{
			get{return _horizon_grid;}
			set{ if (value > 0)
					_horizon_grid = value;
				else
					Debug.Log ("invalid herticle_grid");
               }
		}
		 
		//垂直方向网格数量
		public static int verticle_grid
		{
			get{return _verticle_grid;}
			set{
				if (value > 0)
					_verticle_grid = value;
				else
					Debug.Log("invalid verticle_grid");
			}
		}
		
		void Awake()
		{
			//获取玩家选择的关卡等信息
			GameObject player_choice_obj = GameObject.Find("PlayerChoice");
			Player_Choice player_choice_comp = player_choice_obj.GetComponent<Player_Choice>() as Player_Choice;
			GameObject map_prefabs_obj = GameObject.Find("MapPrefabs");
			Map_Prefabs map_prefabs_comp = map_prefabs_obj.GetComponent<Map_Prefabs>() as Map_Prefabs;
			
		}
		
	
		void Load_Map_Config()
		{
			
		}
	}
}
